import { combineReducers } from 'redux';
import { getNow, actions } from '../actions/actionSyncDemo';


const InitialData = {
    now: getNow(),
};

function reducer(state = {}, action) {
    var newState = { ...InitialData, ...state };
    var data = action ? action.data : {};

    switch (action.type) {
        case actions['CHANGE_NOW']:
            newState.now = action.data;
            break;
    }
    return newState;
}

export default reducer